import conf from '../conf'

import Storage from '../storage'

import Vue from 'vue'

$.cachedScript = function (url, options) {
  options = $.extend(options || {}, {
    dataType: "script",
    cache: true,
    url: url
  });
  return $.ajax(options);
};

function checkResult(ret) {
  if (!ret.success && ret.desc && (ret.desc.indexOf('accessToken不存在或已过期') != -1 || ret.desc.indexOf('token不能为空') != -1)) {
    document.location.href = '/'
  }

}

const io = {


  configUrls: function () {
    this.saveUser = conf.baseApiPath + '/api?method=saveUser'
    this.getUser = conf.baseApiPath + '/api?method=getUser'
    this.userList = conf.baseApiPath + '/api?method=userList'

    this.apiQrcodeEncode = conf.baseApiPath + '/api/qrcode/encode'
    this.apiBarcodeEncode = conf.baseApiPath + '/api/barcode/encode'
    this.apiPayPreparePay = conf.baseApiPath + '/api/pay/preparePay'

    this.apiAdminLogin = conf.baseApiPath + '/api/admin/login'
    this.apiAdminCheckNeedCaptcha = conf.baseApiPath + '/api/admin/checkNeedCaptcha'
    this.apiCaptcha = conf.baseApiPath + '/api/captcha'
    this.apiAdminConfig = conf.baseApiPath + '/api/admin/config'

    this.apiAdminChangeMyPassword = conf.baseApiPath + '/api/admin/changeMyPassword'


    this.apiAdminSysUserList = conf.baseApiPath + '/api/admin/sysUserList'
    this.apiAdminSysUserDetail = conf.baseApiPath + '/api/admin/sysUserDetail'
    this.apiAdminSaveOrUpdateSysUser = conf.baseApiPath + '/api/admin/saveOrUpdateSysUser'
    this.apiAdminUpdateSysUserStatus = conf.baseApiPath + '/api/admin/updateSysUserStatus'
    this.apiAdminDelSysUser = conf.baseApiPath + '/api/admin/delSysUser'
    this.checkPasswordStatus = conf.baseApiPath + '/api/admin/checkPasswordStatus'

    this.apiAdminSysResourceList = conf.baseApiPath + '/api/admin/sysResourceList'
    this.apiAdminRoleResourceList = conf.baseApiPath + '/api/admin/roleResourceList'
    this.apiAdminSaveRoleResource = conf.baseApiPath + '/api/admin/saveRoleResource'

    this.apiAdminSysDataPermissionConfig = conf.baseApiPath + '/api/admin/sysDataPermissionConfig'
    this.sysCampusDataPermissionConfig = conf.baseApiPath + '/api/admin/sysCampusDataPermissionConfig'
    this.apiAdminSaveUserDataPermission = conf.baseApiPath + '/api/admin/saveUserDataPermission'
    this.saveUserCampusDataPermission = conf.baseApiPath + '/api/admin/saveUserCampusDataPermission'
    this.apiAdminUserDataPermissionList = conf.baseApiPath + '/api/admin/dataPermissionList'
    this.userCampusDataPermissionList = conf.baseApiPath + '/api/admin/userCampusDataPermissionList'

    this.apiAdminRoleList = conf.baseApiPath + '/api/admin/roleList'
    this.apiAdminRoleDetail = conf.baseApiPath + '/api/admin/roleDetail'
    this.apiAdminSaveRole = conf.baseApiPath + '/api/admin/saveRole'
    this.apiAdminDelRole = conf.baseApiPath + '/api/admin/delRole'
    this.apiAdminSaveUserRole = conf.baseApiPath + '/api/admin/saveUserRole'
    this.apiAdminUserRoleList = conf.baseApiPath + '/api/admin/userRoleList'
    this.apiAdminRoleUserList = conf.baseApiPath + '/api/admin/roleUserList'
    this.apiAdminRecycleRole = conf.baseApiPath + '/api/admin/recycleRole'

    this.apiAdminAreaTeamList = conf.baseApiPath + '/api/admin/areaTeamList'
    this.apiAdminAreaTeamDetail = conf.baseApiPath + '/api/admin/areaTeamDetail'
    this.apiAdminSaveAreaTeam = conf.baseApiPath + '/api/admin/saveAreaTeam'
    this.apiAdminDelAreaTeam = conf.baseApiPath + '/api/admin/delAreaTeam'

    this.apiAdminBusTeamList = conf.baseApiPath + '/api/admin/busTeamList'
    this.apiAdminBusTeamDetail = conf.baseApiPath + '/api/admin/busTeamDetail'
    this.apiAdminSaveBusTeam = conf.baseApiPath + '/api/admin/saveBusTeam'
    this.apiAdminDelBusTeam = conf.baseApiPath + '/api/admin/delBusTeam'

    this.apiAdminPeriodList = conf.baseApiPath + '/api/admin/periodList'
    this.apiAdminPeriodDetail = conf.baseApiPath + '/api/admin/periodDetail'
    this.apiAdminBeforePeriods = conf.baseApiPath + '/api/admin/beforePeriodList'
    this.apiAdminSaveOrUpdatePeriod = conf.baseApiPath + '/api/admin/saveOrUpdatePeriod'
    this.apiAdminUpdateCurrentPeriod = conf.baseApiPath + '/api/admin/updateCurrentPeriod'
    this.apiAdminPeriodListForAreaTeam = conf.baseApiPath + '/api/admin/periodListForAreaTeam'
    this.apiAdminContinueClassSetting = conf.baseApiPath + '/api/admin/continueClassSetting'
    this.apiAdminSaveOrUpdateContinueClassSetting = conf.baseApiPath + '/api/admin/saveOrUpdateContinueClassSetting'
    this.savePeriodGradeDate = conf.baseApiPath + '/api/admin/savePeriodGradeDate'
    this.periodGradeDateList = conf.baseApiPath + '/api/admin/periodGradeDateList'

    this.apiAdminStudentSchoolList = conf.baseApiPath + '/api/admin/studentSchoolList'
    this.apiAdminStudentSchoolDetail = conf.baseApiPath + '/api/admin/studentSchoolDetail'
    this.apiAdminSaveOrUpdateStudentSchool = conf.baseApiPath + '/api/admin/saveOrUpdateStudentSchool'
    this.apiAdminSearchStudentSchool = conf.baseApiPath + '/api/admin/searchStudentSchool'

    this.apiAdminClassRemunerationList = conf.baseApiPath + '/api/admin/classRemunerationList'
    this.apiAdminClassRemunerationDetail = conf.baseApiPath + '/api/admin/classRemunerationDetail'
    this.apiAdminSaveOrUpdateClassRemuneration = conf.baseApiPath + '/api/admin/saveOrUpdateClassRemuneration'
    this.apiAdminDelClassRemuneration = conf.baseApiPath + '/api/admin/delClassRemuneration'

    this.queryRefundSettings = conf.baseApiPath + '/api/admin/queryRefundSettings'
    this.queryRefundSettingBusteams = conf.baseApiPath + '/api/admin/queryRefundSettingBusteams'
    this.saveOrUpadteRefundSetting = conf.baseApiPath + '/api/admin/saveOrUpadteRefundSetting'
    this.deleteRefundSetting = conf.baseApiPath + '/api/admin/deleteRefundSetting'


    this.apiAdminTeacherList = conf.baseApiPath + '/api/admin/teaching/resource/teacherList'
    this.apiAdminSaveDelayUpdateTeacher = conf.baseApiPath + '/api/admin/teaching/resource/saveDelayUpdateTeacher'
    this.apiAdminDelayTeacherMessage = conf.baseApiPath + '/api/admin/teaching/resource/delayTeacherMessage'

    this.apiAdminTeacherDetail = conf.baseApiPath + '/api/admin/teaching/resource/teacherDetail'
    this.apiAdminSaveOrUpdateTeacher = conf.baseApiPath + '/api/admin/teaching/resource/saveOrUpdateTeacher'
    this.apiAdminDelTeacher = conf.baseApiPath + '/api/admin/teaching/resource/delTeacher'
    this.apiAdminTeacherTags = conf.baseApiPath + '/api/admin/teaching/resource/teacherTags'
    this.apiAdminExportTeachers = conf.baseApiPath + '/api/admin/teaching/resource/exportTeachers'

    this.apiAdminCampusManageList = conf.baseApiPath + '/api/admin/teaching/resource/campusManageList'
    this.apiAdminCampusUseList = conf.baseApiPath + '/api/admin/teaching/resource/campusUseList'
    this.apiAdminCampusOfAreaTeam = conf.baseApiPath + '/api/admin/teaching/resource/campusOfAreaTeam'
    this.apiAdminBaseCampusList = conf.baseApiPath + '/api/admin/teaching/resource/baseCampusList'
    this.apiAdminCampusDetail = conf.baseApiPath + '/api/admin/teaching/resource/campusDetail'
    this.apiAdminSaveOrUpdateCampus = conf.baseApiPath + '/api/admin/teaching/resource/saveOrUpdateCampus'
    this.apiAdminDelCampus = conf.baseApiPath + '/api/admin/teaching/resource/delCampus'

    this.apiAdminAuditCampusList = conf.baseApiPath + '/api/admin/trading/campusList'
    this.apiAdminShowCampusDetail = conf.baseApiPath + '/api/admin/trading/campusDetail'
    this.apiAdminAuditCampus = conf.baseApiPath + '/api/admin/trading/auditCampus'

    this.apiAdminAddOrUpdateCampus = conf.baseApiPath + '/api/admin/trading/addOrUpdateCampus'
    this.apiAdminOwnTeam = conf.baseApiPath + '/api/admin/trading/ownTeam'
    this.apiAdminOwnPayMainAccountList = conf.baseApiPath + '/api/admin/trading/ownMainCount'

    this.apiAdminRoomList = conf.baseApiPath + '/api/admin/teaching/resource/roomList'
    this.apiAdminRoomDetail = conf.baseApiPath + '/api/admin/teaching/resource/roomDetail'
    this.apiAdminSaveOrUpdateRoom = conf.baseApiPath + '/api/admin/teaching/resource/saveOrUpdateRoom'
    this.apiAdminDelRoom = conf.baseApiPath + '/api/admin/teaching/resource/delRoom'

    this.apiAdminTradingRoomList = conf.baseApiPath + '/api/admin/trading/roomList'
    this.apiAdminTradingRoomDetail = conf.baseApiPath + '/api/admin/trading/roomDetail'
    this.apiAdminTradingSaveOrUpdateRoom = conf.baseApiPath + '/api/admin/trading/saveOrUpdateRoom'
    this.apiAdminTradingDelRoom = conf.baseApiPath + '/api/admin/trading/delRoom'



    this.apiAdminRoomListForClassArrangement = conf.baseApiPath + '/api/admin/arrangement/roomListForClassArrangement'
    this.apiAdminRoomListForArrangement = conf.baseApiPath + '/api/admin/arrangement/roomListForArrangement'
    this.apiAdminArrangeRoom = conf.baseApiPath + '/api/admin/arrangement/arrangementRoom'
    this.saveOrUpdateArrangementRoom = conf.baseApiPath + '/api/admin/arrangement/saveOrUpdateArrangementRoom'
    this.apiAdminRoomTimeList = conf.baseApiPath + '/api/admin/arrangement/roomTimeList'
    this.apiAdminTeacherClassTimeList = conf.baseApiPath + '/api/admin/arrangement/teacherClassLectureList'
    this.apiAdminTeacherListForClassArrangement = conf.baseApiPath + '/api/admin/arrangement/teacherListForArrangement'
    this.apiAdminArrangeTeacher = conf.baseApiPath + '/api/admin/arrangement/arrangeTeacher'
    this.apiAdminClassTimeList = conf.baseApiPath + '/api/admin/arrangement/classLectureList'
    this.batchAdjustLectureTimes = conf.baseApiPath + '/api/admin/arrangement/batchAdjustLectureTimes'

    this.apiAdminCourseTemplateManageList = conf.baseApiPath + '/api/admin/courseTemplateManageList'
    this.exportCourseTemplateByQueryForManage = conf.baseApiPath + '/api/admin/exportCourseTemplateByQueryForManage'
    this.apiAdminCourseTemplateUseList = conf.baseApiPath + '/api/admin/courseTemplateUseList'
    this.apiAdminTemplateDetailDetail = conf.baseApiPath + '/api/admin/courseTemplateDetail'
    this.apiAdminDeleteCourseTemplate = conf.baseApiPath + '/api/admin/deleteCourseTemplate'
    this.apiAdminSaveOrUpdateTemplateDetail = conf.baseApiPath + '/api/admin/saveOrUpdateCourseTemplate'
    this.apiAdminChangeCourseTypeList = conf.baseApiPath + '/api/admin/courseTypeList'
    this.apiAdminCourseTypeManageList = conf.baseApiPath + '/api/admin/courseTypeManageList'
    this.apiAdminCourseTypeSaveOrUpdate = conf.baseApiPath + '/api/admin/saveOrUpdateCourseType'
    this.apiAdminDeleteCourseType = conf.baseApiPath + '/api/admin/deleteCourseType'

    this.allBusTeamList = conf.baseApiPath + '/api/admin/allBusTeamList'
    this.apiAdminProductManageList = conf.baseApiPath + '/api/admin/productManageList'
    this.apiAdminProductDetail = conf.baseApiPath + '/api/admin/productDetail'
    this.apiAdminDeleteProduct = conf.baseApiPath + '/api/admin/deleteProduct'
    this.apiAdminProductSaveOrUpdate = conf.baseApiPath + '/api/admin/saveOrUpdateProduct'
    this.apiAdminBaseProductList = conf.baseApiPath + '/api/admin/baseProductList'
    this.apiAdminBaseProductListForAreaTeam = conf.baseApiPath + '/api/admin/baseProductListForAreaTeam'
    this.apiAdminBaseCourseTemplateListForAreaTeam = conf.baseApiPath + '/api/admin/baseCourseTemplateListForAreaTeam'
    this.apiAdminBaseCourseList = conf.baseApiPath + '/api/admin/baseCourseList'
    this.apiAdminBaseCourseListForAreaTeam = conf.baseApiPath + '/api/admin/baseCourseListForAreaTeam'
    this.apiAdminPrepareRearrange = conf.baseApiPath + '/api/admin/arrangement/prepareRearrange'
    this.apiAdminResetDefaultPassword = conf.baseApiPath + '/api/admin/resetDefaultPassword'


    this.copyInitOtherClassByOne = conf.baseApiPath + '/api/admin/copyInitOtherClassByOne'
    this.apiAdminCourseClassList = conf.baseApiPath + '/api/admin/courseClassList'
    this.apiAdminExportCourseClassList = conf.baseApiPath + '/api/admin/exportCourseClassList'
    this.apiAdminCourseClassForReg = conf.baseApiPath + '/api/admin/courseClassForReg'
    this.apiAdminCourseClassDetail = conf.baseApiPath + '/api/admin/courseClassDetail'
    this.apiAdminCourseClassBaseDetail = conf.baseApiPath + '/api/admin/courseClassBaseDetail'
    this.apiAdminSaveOrUpdateClass = conf.baseApiPath + '/api/admin/saveOrUpdateCourseClass'
    this.apiAdminChangeCourseClassStatus = conf.baseApiPath + '/api/admin/changeCourseClassStatus'
    this.apiAdminRecommendCourseClass = conf.baseApiPath + '/api/admin/recommendCourseClass'
    this.apiAdminSaveArrangeClassTimeResult = conf.baseApiPath + '/api/admin/arrangement/saveArrangeClassTimeResult'
    this.apiAdminRearrangeTimeForLecture = conf.baseApiPath + '/api/admin/arrangement/rearrangeTimeForLecture'
    this.apiAdminRearrangeTeacherForLecture = conf.baseApiPath + '/api/admin/arrangement/rearrangeTeacherForLecture'
    this.releaseRoom = conf.baseApiPath + '/api/admin/arrangement/releaseRoom'
    this.releaseTeacher = conf.baseApiPath + '/api/admin/arrangement/releaseTeacher'
    this.apiAdminChangeClassType = conf.baseApiPath + '/api/admin/changeClassType'
    this.apiAdminExportStudentReg = conf.baseApiPath + '/api/admin/exportStudentReg'
    this.apiAdminSeniorList = conf.baseApiPath + '/api/admin/seniorList'
    this.apiAdminSetupClassSenior = conf.baseApiPath + '/api/admin/setupClassSenior'
    this.apiAdminSetupStudentRegSenior = conf.baseApiPath + '/api/admin/setupStudentRegSenior'
    this.apiAdminCrowdfundingClassList = conf.baseApiPath + '/api/admin/crowdfundingClassMgr'
    this.apiAdminCrowdfundingClassRegList = conf.baseApiPath + '/api/admin/crowdfundingClassRegList'
    this.apiAdminCrowdfundingClassEdit = conf.baseApiPath + '/api/admin/crowdfundingClassDetail'
    this.apiAdminCrowdfundingSaveOrUpdate = conf.baseApiPath + '/api/admin/saveOrUpdateCrowdfundingClass'

    this.apiAdminBookingOrder = conf.baseApiPath + '/api/admin/countBookingStudent'

    this.studentSaveOrUpdate = conf.baseApiPath + '/api/admin/saveOrUpdateStudent'
    this.apiAdminStudentDetail = conf.baseApiPath + '/api/admin/studentDetail'
    this.apiAdminSearchStudent = conf.baseApiPath + '/api/admin/searchStudent'
    this.apiFindMoreStudentInfo = conf.baseApiPath + '/api/admin/findMoreStudentInfo'
    this.apiAdminCreateOfflineOrder = conf.baseApiPath + '/api/admin/createOfflineOrder'
    this.apiAdminCourseOrderList = conf.baseApiPath + '/api/admin/courseOrderList'
    this.apiAdminCancelCourseOrder = conf.baseApiPath + '/api/admin/cancelCourseOrder'
    this.apiAdminStudentReadClassList = conf.baseApiPath + '/api/admin/studentReadClassList'
    this.apiAdminCourseOrderDetail = conf.baseApiPath + '/api/admin/courseOrderDetail'
    this.apiAdminDiscountListOfPolicy = conf.baseApiPath + '/api/admin/discountListOfPolicy'
    this.apiAdminRecalculateCourseOrderDiscount = conf.baseApiPath + '/api/admin/recalculateCourseOrderDiscount'
    this.apiAdminCourseOrderDetailByRequestPayId = conf.baseApiPath + '/api/admin/courseOrderDetailByRequestPayId'
    this.apiAdminStudentClassCertDetail = conf.baseApiPath + '/api/admin/studentClassCertDetail'
    this.apiAdminConfirmPayOrder = conf.baseApiPath + '/api/admin/confirmPayOrder'
    this.apiAdminQueryPayResult = conf.baseApiPath + '/api/admin/queryPayResult'
    this.apiAdminCancelPosScan = conf.baseApiPath + '/api/admin/cancelPosScan'
    this.encodeBase64 = conf.baseApiPath + '/api/qrcode/encodeBase64'
    this.addCourseOrderDiscount = conf.baseApiPath + '/api/admin/addCourseOrderDiscount'
    this.delCourseOrderDiscount = conf.baseApiPath + '/api/admin/delCourseOrderDiscount'
    this.courseOrderDiscount = conf.baseApiPath + '/api/admin/courseOrderDiscount'
    this.baseCourseTemplateListForAreaTeamPeriod = conf.baseApiPath + '/api/admin/baseCourseTemplateListForAreaTeamPeriod'


    this.apiAdminStudentRegDetail = conf.baseApiPath + '/api/admin/studentRegDetail'
    this.apiAdminStudentRegDetails = conf.baseApiPath + '/api/admin/studentRegDetails'
    this.apiAdminTurnClass = conf.baseApiPath + '/api/admin/turnClass'
    this.apiAdminSaveShiftClass = conf.baseApiPath + '/api/admin/saveShiftClass'
    this.apiAdminStudentRefundList = conf.baseApiPath + '/api/admin/showStudentRefundList'
    this.apiAdminQueryAttendOfStudent = conf.baseApiPath + '/api/admin/queryAttendOfStudent'
    this.apiAdminQueryAttendOfStudents = conf.baseApiPath + '/api/admin/queryAttendOfStudentRegs'
    this.apiAdminSaveOrupdateStudentRefund = conf.baseApiPath + '/api/admin/saveStudentRefundClass'
    this.apiAdminStudentRefundDetail = conf.baseApiPath + '/api/admin/studentRefundDetail'
    this.apiAdminChangeStudentRefundStatus = conf.baseApiPath + '/api/admin/changeStudentRefundStatus'
    this.apiAdminChangeStudentPayStatus = conf.baseApiPath + '/api/admin/changeStudentPayStatus'
    this.apiAdminStudentRegList = conf.baseApiPath + '/api/admin/studentRegList'
    this.apiAdminExportStudentRefund = conf.baseApiPath + '/api/admin/exportStudentRefund'

    this.apiAdminSettlementMainAccountList = conf.baseApiPath + '/api/admin/settlement/mainAccountList'
    this.apiAdminSettlementAllMainAccountListWithoutStudent = conf.baseApiPath + '/api/admin/settlement/allMainAccountListWithoutStudent'
    this.apiAdminSettlementAccountReportDetailList = conf.baseApiPath + '/api/admin/settlement/accountReportDetailList'
    this.apiAdminSettlementAccountReportTotalAmount = conf.baseApiPath + '/api/admin/settlement/accountReportTotalAmount'
    this.apiAdminSettlementFeeList = conf.baseApiPath + '/api/admin/settlement/feeList'
    this.apiAdminSettlementFeeDetail = conf.baseApiPath + '/api/admin/settlement/feeDetail'
    this.apiAdminSettlementSaveFee = conf.baseApiPath + '/api/admin/settlement/saveFee'
    this.apiAdminSettlementDeleteFee = conf.baseApiPath + '/api/admin/settlement/deleteFee'
    this.apiAdminSettlementAuditingFee = conf.baseApiPath + '/api/admin/settlement/auditingFee'
    this.apiAdminSettlementProfitDetaile = conf.baseApiPath + '/api/admin/settlement/profitDetail'
    this.apiAdminSettlementAccountWithdrawalList = conf.baseApiPath + '/api/admin/settlement/accountWithdrawalList'
    this.apiAdminSettlementWithdrawalList = conf.baseApiPath + '/api/admin/settlement/withdrawalList'
    this.apiAdminSettlementApplyWithdrawal = conf.baseApiPath + '/api/admin/settlement/applyWithdrawal'
    this.apiAdminSettlementUpdateWithdrawalStatus = conf.baseApiPath + '/api/admin/settlement/updateWithdrawalStatus'
    this.apiAdminSettlementFeeCategoryList = conf.baseApiPath + '/api/admin/settlement/feeCategoryList'
    this.apiAdminSettlementFeeCategoryTreeMap = conf.baseApiPath + '/api/admin/settlement/feeCategoryTreeMap'
    this.apiAdminSettlementFeeCategoryDetail = conf.baseApiPath + '/api/admin/settlement/feeCategoryDetail'
    this.apiAdminSettlementSaveOrUpdateFeeCategory = conf.baseApiPath + '/api/admin/settlement/saveOrUpdateFeeCategory'
    this.apiAdminSettlementDeleteFeeCategory = conf.baseApiPath + '/api/admin/settlement/deleteFeeCategory'

    this.apiAdminSettlementIncomeCategoryList = conf.baseApiPath + '/api/admin/settlement/incomeCategoryList'
    this.apiAdminSettlementIncomeCategoryDetail = conf.baseApiPath + '/api/admin/settlement/incomeCategoryDetail'
    this.apiAdminSettlementSaveOrUpdateIncomeCategory = conf.baseApiPath + '/api/admin/settlement/saveOrUpdateIncomeCategory'
    this.apiAdminSettlementDeleteIncomeCategory = conf.baseApiPath + '/api/admin/settlement/deleteIncomeCategory'

    this.importCourseExcel = conf.baseApiPath + '/api/admin/courseTemplateImport'
    this.importCourseClassImport = conf.baseApiPath + '/api/admin/courseClassImport'

    this.apiAdminClassHistoryList = conf.baseApiPath + '/api/admin/classHistoryList'

    this.apiAdminSaveCategory = conf.baseApiPath + '/api/admin/trading/saveCategory'
    this.apiAdminEditCategory = conf.baseApiPath + '/api/admin/trading/editCategory'
    this.apiAdminCategoryDetail = conf.baseApiPath + '/api/admin/trading/getCategory'
    this.apiAdminCategoryList = conf.baseApiPath + '/api/admin/trading/showCategory'
    this.apiAdminDeleteCategory = conf.baseApiPath + '/api/admin/trading/deleteCategory'
    this.apiAdminGetCategory = conf.baseApiPath + '/api/admin/trading/getCategoryMessage'

    this.apiAdminGetCategoryByType = conf.baseApiPath + '/api/admin/trading/findServiceCategoryTreeVoByType'

    this.apiAdminServiceMerchantList = conf.baseApiPath + '/api/admin/trading/merchantList'

    this.apiAdminServiceMerchantDetail = conf.baseApiPath + '/api/admin/trading/merchantDetail'
    this.apiAdminChangeServiceMerchant = conf.baseApiPath + '/api/admin/trading/auditMerchant'

    this.apiAdminGoodList = conf.baseApiPath + '/api/admin/trading/goodPage'
    this.apiAdminOffGood = conf.baseApiPath + '/api/admin/trading/offGood'
    this.apiAdminDeleteGood = conf.baseApiPath + '/api/admin/trading/deleteGood'

    this.apiAdminDemandList = conf.baseApiPath + '/api/admin/trading/demandPage'
    this.apiAdminOffDemand = conf.baseApiPath + '/api/admin/trading/offDemand'
    this.apiAdminDeleteDemand = conf.baseApiPath + '/api/admin/trading/deleteDemand'


    this.apiAdminLeaseList = conf.baseApiPath + '/api/admin/trading/leasePage'
    this.apiAdminOffLease = conf.baseApiPath + '/api/admin/trading/offLease'
    this.apiAdminDeleteLease = conf.baseApiPath + '/api/admin/trading/deleteLease'


    this.apiAdminOrderItemList = conf.baseApiPath + '/api/admin/trading/orderItemList'


    this.apiAdminAttendClassLectureList = conf.baseApiPath + '/api/admin/attendance/attendClassLectureList'
    this.apiAdminAttendanceAttendanceRecordList = conf.baseApiPath + '/api/admin/attendance/attendanceRecordList'
    this.apiAdminAttendanceAttendanceRecordDetailList = conf.baseApiPath + '/api/admin/attendance/attendanceRecordDetailList'
    this.apiAdminAttendanceSaveAttendanceRecordDetail = conf.baseApiPath + '/api/admin/attendance/saveAttendanceRecordDetail'
    this.apiAdminAttendanceAttendClassRecordDetailList = conf.baseApiPath + '/api/admin/attendance/attendClassRecordDetailList'
    this.apiAdminAttendanceExportAttendClassRecordDetail = conf.baseApiPath + '/api/admin/attendance/exportAttendClassRecordDetail'
    this.apiAdminAttendanceShiftRecordDetailList = conf.baseApiPath + '/api/admin/attendance/shiftRecordDetailList'
    this.exportShiftClassRecordDetail = conf.baseApiPath + '/api/admin/attendance/exportShiftClassRecordDetail'
    this.apiAdminAttendanceCancelShiftClass = conf.baseApiPath + '/api/admin/attendance/cancelShiftClass'
    this.exportAttendClassLecture = conf.baseApiPath + '/api/admin/attendance/exportAttendClassLecture'
    this.exportAttendanceRecordDetail = conf.baseApiPath + '/api/admin/attendance/exportAttendanceRecordDetail'
    this.changeClassList = conf.baseApiPath + '/api/admin/attendance/changeClassList'
    this.findAttendWarningPage = conf.baseApiPath + '/api/admin/attendance/findAttendWarningPage'
    this.exportAttendWarning = conf.baseApiPath + '/api/admin/attendance/exportAttendWarning'
    this.saveAttendanceRecordAdvanceDetail = conf.baseApiPath + '/api/admin/attendance/saveAttendanceRecordAdvanceDetail'


    this.apiAdminStudentMainAccount = conf.baseApiPath + '/api/admin/studentMainAccount'
    this.autoBindStudent = conf.baseApiPath + '/api/m/u/autoBindStudent'


    this.apiAdminReportChargeList = conf.baseApiPath + '/api/admin/report/chargeList'
    this.campusChargeList = conf.baseApiPath + '/api/admin/report/campusChargeList'
    this.apiAdminReportChangeChargeDailyStatus = conf.baseApiPath + '/api/admin/report/changeChargeDailyStatus'
    this.canelChargeDailyStatus = conf.baseApiPath + '/api/admin/report/canelChargeDailyStatus '
    this.apiAdminReportExportCharge = conf.baseApiPath + '/api/admin/report/exportCharge'
    this.exportCampusCharge = conf.baseApiPath + '/api/admin/report/exportCampusCharge'
    this.apiAdminReportAggregateConsumeList = conf.baseApiPath + '/api/admin/report/aggregateConsumeList'
    this.apiAdminReportExportConsumeAggregation = conf.baseApiPath + '/api/admin/report/exportConsumeAggregation'
    this.apiAdminReportPayRecordList = conf.baseApiPath + '/api/admin/report/payRecordList'
    this.apiAdminReportExportPayRecordList = conf.baseApiPath + '/api/admin/report/exportPayRecordList'
    this.findStudentClassInvoicePage = conf.baseApiPath + '/api/admin/report/findStudentClassInvoicePage'
    this.exportStudentClassInvoice = conf.baseApiPath + '/api/admin/report/exportStudentClassInvoice'
    this.findConsumeCollect = conf.baseApiPath + '/api/admin/report/findConsumeCollect'
    this.apiAdminReportConsumeList = conf.baseApiPath + '/api/admin/report/consumeList'
    this.apiAdminReportExportConsumeRecord = conf.baseApiPath + '/api/admin/report/exportConsumeRecord'



    this.apiAdminScheduleScheduleDataOfTeacher = conf.baseApiPath + '/api/admin/schedule/scheduleDataOfTeacher'
    this.apiAdminSchedulescheduleDataOfCampus = conf.baseApiPath + '/api/admin/schedule/scheduleDataOfCampus'
    this.apiAdminScheduleSaveChange = conf.baseApiPath + '/api/admin/schedule/saveChange'


    this.apiAdminHtml2excel = conf.baseApiPath + '/api/admin/html2excel'
    this.exportScheduleDataOfTeacher = conf.baseApiPath + '/api/admin/schedule/exportScheduleDataOfTeacher'

    this.apiAdminDiscountCategoryList = conf.baseApiPath + '/api/admin/discount/categoryList'
    this.apiAdminDiscountCategoryDetail = conf.baseApiPath + '/api/admin/discount/categoryDetail'
    this.apiAdminDiscountDelCategory = conf.baseApiPath + '/api/admin/discount/delCategory'
    this.apiAdminDiscountSaveOrUpdateCategory = conf.baseApiPath + '/api/admin/discount/saveOrUpdateCategory'
    this.apiAdminDiscountRuleList = conf.baseApiPath + '/api/admin/discount/ruleList'
    this.apiAdminDiscountRuleDetail = conf.baseApiPath + '/api/admin/discount/ruleDetail'
    this.apiAdminDiscountDelRule = conf.baseApiPath + '/api/admin/discount/delRule'
    this.apiAdminDiscountSaveOrUpdateRule = conf.baseApiPath + '/api/admin/discount/saveOrUpdateRule'
    this.apiAdminDiscountDiscountList = conf.baseApiPath + '/api/admin/discount/discountList'
    this.apiAdminDiscountDiscountDetail = conf.baseApiPath + '/api/admin/discount/discountDetail'
    this.apiAdminDiscountDelDiscount = conf.baseApiPath + '/api/admin/discount/delDiscount'
    this.discountCodeList = conf.baseApiPath + '/api/admin/discount/discountCodeList'
    this.exportDiscountCodeList = conf.baseApiPath + '/api/admin/discount/exportDiscountCodeList'
    this.updateDiscountEnable = conf.baseApiPath + '/api/admin/discount/updateDiscountEnable'
    this.createDiscountCode = conf.baseApiPath + '/api/admin/discount/createDiscountCode'
    this.apiAdminDiscountSaveOrUpdateDiscount = conf.baseApiPath + '/api/admin/discount/saveOrUpdateDiscount'
    this.apiAdminDiscountTestRule = conf.baseApiPath + '/api/admin/discount/testRule'
    this.apiAdminDiscountTestData = conf.baseApiPath + '/api/admin/discount/testData'


    this.mainAccountTargetList = conf.baseApiPath + '/api/admin/analyze/mainAccountTargetList'
    this.teacherTargetList = conf.baseApiPath + '/api/admin/analyze/teacherTargetList'
    this.classTargetList = conf.baseApiPath + '/api/admin/analyze/classTargetList'
    this.areaTeamGradeSubjectTarget = conf.baseApiPath + '/api/admin/analyze/areaTeamGradeSubjectTarget'
    this.findMainAccountCostAndIncome = conf.baseApiPath + '/api/admin/analyze/findMainAccountCostAndIncome'
    this.findIncomeByAllCategory = conf.baseApiPath + '/api/admin/analyze/findIncomeByAllCategory'
    this.findCostByAllCategory = conf.baseApiPath + '/api/admin/analyze/findCostByAllCategory'
    this.incomeDetail = conf.baseApiPath + '/api/admin/analyze/incomeDetail'
    this.costDetail = conf.baseApiPath + '/api/admin/analyze/costDetail'
    this.productCostDetail = conf.baseApiPath + '/api/admin/analyze/productCostDetail'
    this.gradeAndSubjectDetail = conf.baseApiPath + '/api/admin/analyze/gradeAndSubjectDetail'
    this.productStatisticsList = conf.baseApiPath + '/api/admin/analyze/productStatisticsList'
    this.areaTeamGradeAndSubjectStatistics = conf.baseApiPath + '/api/admin/analyze/areaTeamGradeAndSubjectStatistics'
    this.productStatisticsByCategory = conf.baseApiPath + '/api/admin/analyze/productStatisticsByCategory'
    this.gradeAndSubjectAllCategoryDetail = conf.baseApiPath + '/api/admin/analyze/gradeAndSubjectAllCategoryDetail'
    this.gradeAndSubjectIncome = conf.baseApiPath + '/api/admin/analyze/gradeAndSubjectIncome'
    this.productIncomeList = conf.baseApiPath + '/api/admin/analyze/productIncomeList'
    this.incomeProfitsOfAreaTeam = conf.baseApiPath + '/api/admin/analyze/incomeProfitsOfAreaTeam'
    this.businessCaseOfAreaTeam = conf.baseApiPath + '/api/admin/analyze/businessCaseOfAreaTeam'
    this.warningOfAreaTeam = conf.baseApiPath + '/api/admin/analyze/warningOfAreaTeam'
    this.fullClassRate = conf.baseApiPath + '/api/admin/analyze/busTeamfullClassRate'
    this.exportBusTeamFullClassRate = conf.baseApiPath + '/api/admin/analyze/exportBusTeamFullClassRate'
    this.seniorComletionRate = conf.baseApiPath + '/api/admin/analyze/seniorComletionRate'
    this.gradeCompletionRate = conf.baseApiPath + '/api/admin/analyze/gradeCompletionRate'
    this.classComletionRate = conf.baseApiPath + '/api/admin/analyze/classComletionRate'
    this.exportGradeCompletionRate = conf.baseApiPath + '/api/admin/analyze/exportGradeCompletionRate'
    this.exportSomeSeniorComletionRate = conf.baseApiPath + '/api/admin/analyze/exportSomeSeniorComletionRate '
    this.exportClassComletionRate = conf.baseApiPath + '/api/admin/analyze/exportClassComletionRate'
    this.exportSeniorComletionRate = conf.baseApiPath + '/api/admin/analyze/exportSeniorComletionRate'
    this.productTargetList = conf.baseApiPath + '/api/admin/analyze/productTargetList'
    this.findSummerWinterById = conf.baseApiPath + '/api/admin/findSummerWinterById'
    this.findSummerWinterList = conf.baseApiPath + '/api/admin/findSummerWinterList'
    this.deleteSummerWinter = conf.baseApiPath + '/api/admin/deleteSummerWinter'
    this.saveOrUpdateSummerWinter = conf.baseApiPath + '/api/admin/saveOrUpdateSummerWinter'
    this.findSummerWinterByCampusId = conf.baseApiPath + '/api/admin/findSummerWinterByCampusId'
    this.periodByYearAndAreaTeamId = conf.baseApiPath + '/api/admin/analyze/periodByYearAndAreaTeamId'
    this.saveOrUpdateMainAccountTarget = conf.baseApiPath + '/api/admin/analyze/saveOrUpdateMainAccountTarget'
    this.saveOrUpdateProductTarget = conf.baseApiPath + '/api/admin/analyze/saveOrUpdateProductTarget'
    this.saveTeacherTarget = conf.baseApiPath + '/api/admin/analyze/saveTeacherTarget'
    this.saveClassTarget = conf.baseApiPath + '/api/admin/analyze/saveClassTarget'
    this.saveOrUpdateMainAccountTarget = conf.baseApiPath + '/api/admin/analyze/saveOrUpdateMainAccountTarget'
    this.smsPage = conf.baseApiPath + '/api/admin/analyze/smsPage'
    this.refundSituationPage = conf.baseApiPath + '/api/admin/analyze/refundSituationPage'
    this.exportRefundSituation = conf.baseApiPath + '/api/admin/analyze/exportRefundSituation'
    this.findRefundDetail = conf.baseApiPath + '/api/admin/analyze/findRefundDetail'
    this.exportRefundDetail = conf.baseApiPath + '/api/admin/analyze/exportRefundDetail'
    this.sumRefundSituation = conf.baseApiPath + '/api/admin/analyze/sumRefundSituation'
    this.ownMainCount = conf.baseApiPath + '/api/admin/trading/ownMainCount'
    this.auditTransfer = conf.baseApiPath + '/api/admin/balance/auditTransfer'
    this.auditWithdrawal = conf.baseApiPath + '/api/admin/balance/auditWithdrawal'
    this.setupPayStatusForWithdrawal = conf.baseApiPath + '/api/admin/balance/setupPayStatusForWithdrawal'
    this.transferDetail = conf.baseApiPath + '/api/admin/balance/transferDetail'
    this.transferForStudent = conf.baseApiPath + '/api/admin/balance/transferForStudent'
    this.transferList = conf.baseApiPath + '/api/admin/balance/transferList'
    this.findCompleteTmsBalanceTransferPage = conf.baseApiPath + '/api/admin/balance/findCompleteTmsBalanceTransferPage'
    this.exportCompleteTmsBalanceTransfer = conf.baseApiPath + '/api/admin/balance/exportCompleteTmsBalanceTransfer'
    this.queryStudentDealBalance = conf.baseApiPath + '/api/admin/balance/queryStudentDealBalance'
    this.comfirmTransferTmsBalance = conf.baseApiPath + '/api/admin/balance/comfirmTransferTmsBalance'
    this.withdrawalDetail = conf.baseApiPath + '/api/admin/balance/withdrawalDetail'
    this.withdrawalForStudent = conf.baseApiPath + '/api/admin/balance/withdrawalForStudent'
    this.rechargeBalance = conf.baseApiPath + '/api/admin/balance/rechargeBalance'
    this.withdrawalList = conf.baseApiPath + '/api/admin/balance/withdrawalList'
    this.exportWithdrawalList = conf.baseApiPath + '/api/admin/balance/exportWithdrawalList'
    this.exportTransferList = conf.baseApiPath + '/api/admin/balance/exportTransferList'
    this.findRechargePage = conf.baseApiPath + '/api/admin/balance/findRechargePage'
    this.exportRecharge = conf.baseApiPath + '/api/admin/balance/exportRecharge'
    this.cancelRecharge = conf.baseApiPath + '/api/admin/balance/cancelRecharge'
    this.studentBalancePage = conf.baseApiPath + '/api/admin/balance/studentBalancePage'
    this.exportStudentBalance = conf.baseApiPath + '/api/admin/balance/exportStudentBalance'
    this.studentRefundWithRegInfoDetail = conf.baseApiPath + '/api/admin/studentRefundWithRegInfoDetail'


    this.apiAdminAllinPayCusIdConfigList = conf.baseApiPath + '/api/admin/allinPayCusIdConfigList'
    this.apiAdminAllinPayCusIdConfig = conf.baseApiPath + '/api/admin/allinPayCusIdConfig'
    this.apiAdminSaveAllinPayCusIdConfig = conf.baseApiPath + '/api/admin/saveAllinPayCusIdConfig'



    this.studentScoreList = conf.baseApiPath + '/api/admin/measurement/studentScoreList'
    this.studentScoreDetail = conf.baseApiPath + '/api/admin/measurement/studentScoreDetail'
    this.saveOrUpdateStudentScore = conf.baseApiPath + '/api/admin/measurement/saveOrUpdateStudentScore'
    this.saveOrUpdateMeasurement = conf.baseApiPath + '/api/admin/measurement/saveOrUpdateMeasurement'
    this.measurementList = conf.baseApiPath + '/api/admin/measurement/measurementList'
    this.measurementDetail = conf.baseApiPath + '/api/admin/measurement/measurementDetail'
    this.deleteMeasurement = conf.baseApiPath + '/api/admin/measurement/deleteMeasurement'
    this.updateWhiltelist = conf.baseApiPath + '/api/admin/measurement/updateWhiltelist'
    this.examPapers = conf.baseApiPath + '/api/admin/measurement/examPapers'
    this.bindExams = conf.baseApiPath + '/api/admin/measurement/bindExams'
    this.questionsOfExamPaper = conf.baseApiPath + '/api/admin/measurement/questionsOfExamPaper'
    this.saveOrUpdateExamPaper = conf.baseApiPath + '/api/admin/measurement/saveOrUpdateExamPaper'
    this.saveOrUpdateExamPaperQuestions = conf.baseApiPath + '/api/admin/measurement/saveOrUpdateExamPaperQuestions'
    this.delExamPaper = conf.baseApiPath + '/api/admin/measurement/delExamPaper'

    this.financeSubjectList = conf.baseApiPath + '/api/admin/electronicinvoice/financeSubjectList'
    this.financeSubject = conf.baseApiPath + '/api/admin/electronicinvoice/financeSubject'
    this.openInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/openInvoice'
    this.saveInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/saveInvoice'
    this.saveOrUpdate = conf.baseApiPath + '/api/admin/electronicinvoice/saveOrUpdate'
    this.invoiceList = conf.baseApiPath + '/api/admin/electronicinvoice/invoiceList'
    this.openInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/openInvoice'
    this.resendMail = conf.baseApiPath + '/api/admin/electronicinvoice/resendMail'
    this.rushInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/rushInvoice'
    this.rushInvoiceCreateNew = conf.baseApiPath + '/api/admin/electronicinvoice/rushInvoiceCreateNew'
    this.rushAndCreateInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/rushAndCreateInvoice'
    this.saveInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/saveInvoice'
    this.saveRushInvoice = conf.baseApiPath + '/api/admin/electronicinvoice/saveRushInvoice'
    this.invoiceDetail = conf.baseApiPath + '/api/admin/electronicinvoice/invoiceDetail'
    this.changeSubjectStatus = conf.baseApiPath + '/api/admin/electronicinvoice/changeSubjectStatus'

    this.findCounselorBranchBonusPage = conf.baseApiPath + '/api/admin/analyze/findCounselorBranchBonusPage'
    this.findSeniorBranchBonusPage = conf.baseApiPath + '/api/admin/analyze/findSeniorBranchBonusPage'
    this.findCounselorComletionRateVoPage = conf.baseApiPath + '/api/admin/analyze/findCounselorComletionRateVoPage'
    this.exportCounselorComletionRateVoPage = conf.baseApiPath + '/api/admin/analyze/exportCounselorComletionRateVoPage'
    this.findClassRegDetailPage = conf.baseApiPath + '/api/admin/analyze/findClassRegDetailPage'
    this.exportClassRegDetail = conf.baseApiPath + '/api/admin/analyze/exportClassRegDetail'
    this.findExternalCampusReg = conf.baseApiPath + '/api/admin/analyze/findExternalCampusReg'
    this.exportExternalCampusReg = conf.baseApiPath + '/api/admin/analyze/exportExternalCampusReg'
    this.findExternalSeniorReg = conf.baseApiPath + '/api/admin/analyze/findExternalSeniorReg'
    this.exportExternalSeniorReg = conf.baseApiPath + '/api/admin/analyze/exportExternalSeniorReg'
    this.exportSeniorBranchBonus = conf.baseApiPath + '/api/admin/analyze/exportSeniorBranchBonus'
    this.findClassLectureGroupDetail = conf.baseApiPath + '/api/admin/analyze/findClassLectureGroupDetail'
    this.exportClassLectureGroupDetail = conf.baseApiPath + '/api/admin/analyze/exportClassLectureGroupDetail'
    this.findClassComletionRateVoPage = conf.baseApiPath + '/api/admin/analyze/findClassComletionRateVoPage'
    this.findGradeCompletionVoList = conf.baseApiPath + '/api/admin/analyze/findGradeCompletionVoList'
    this.exportGradeCompletionRate = conf.baseApiPath + '/api/admin/analyze/exportGradeCompletionRate'
    this.exportCounselorBranchBonus = conf.baseApiPath + '/api/admin/analyze/exportCounselorBranchBonus'
    this.findSeniorComletionRateVoPage = conf.baseApiPath + '/api/admin/analyze/findSeniorComletionRateVoPage'
    this.findBusinessSituationList = conf.baseApiPath + '/api/admin/analyze/findBusinessSituationList'
    this.exportBusinessSituation = conf.baseApiPath + '/api/admin/analyze/exportBusinessSituation'
    this.findAmountBranchPerson = conf.baseApiPath + '/api/admin/analyze/findAmountBranchPerson'
    this.exportAmountBranchPerson = conf.baseApiPath + '/api/admin/analyze/exportAmountBranchPerson'
    this.findBlockVo = conf.baseApiPath + '/api/admin/analyze/findBlockVo'

    this.findOnlineList = conf.baseApiPath + '/api/admin/analyze/findOnlineList'
    this.exportBlock = conf.baseApiPath + '/api/admin/analyze/exportBlock'
    this.exportOnlineList = conf.baseApiPath + '/api/admin/analyze/exportOnlineList'
    this.findZyExternalReg = conf.baseApiPath + '/api/admin/analyze/findZyExternalReg'
    this.findAcademicAdvisorData = conf.baseApiPath + '/api/admin/analyze/findAcademicAdvisorData'
    this.exportAcademicAdvisorData = conf.baseApiPath + '/api/admin/analyze/exportAcademicAdvisorData'
    this.findDiscountCodeUseDetail = conf.baseApiPath + '/api/admin/analyze/findDiscountCodeUseDetail'
    this.exportDiscountCodeUseDetail = conf.baseApiPath + '/api/admin/analyze/exportDiscountCodeUseDetail'
    this.fullClassForbidSetting = conf.baseApiPath + '/api/admin/analyze/fullClassForbidSetting'
    this.queryfullClassForbidSetting = conf.baseApiPath + '/api/admin/analyze/queryfullClassForbidSetting'


    this.findSettingPage = conf.baseApiPath + '/api/admin/questionnaire/findSettingPage'
    this.saveUpdateQuestionnaire = conf.baseApiPath + '/api/admin/questionnaire/saveUpdateQuestionnaire'
    this.saveOrUpdateSetting = conf.baseApiPath + '/api/admin/questionnaire/saveOrUpdateSetting'
    this.deleteBySetting = conf.baseApiPath + '/api/admin/questionnaire/deleteBySetting'
    this.questionnaireList = conf.baseApiPath + '/api/admin/questionnaire/questionnaireList'
    this.naireSettingVoDetail = conf.baseApiPath + '/api/admin/questionnaire/naireSettingVoDetail'
    this.questionnaireDetail = conf.baseApiPath + '/api/admin/questionnaire/questionnaireDetail'
    this.deleteQuestionnaire = conf.baseApiPath + '/api/admin/questionnaire/deleteQuestionnaire'
    this.questionnaireRecordList = conf.baseApiPath + '/api/admin/questionnaire/questionnaireRecordList'
    this.questionListByClassId = conf.baseApiPath + '/api/admin/questionnaire/questionListByClassId'
    this.settingSelectQuestionnaire = conf.baseApiPath + '/api/admin/questionnaire/settingSelectQuestionnaire'
    this.questionList = conf.baseApiPath + '/api/admin/questionnaire/questionList'
    this.importQuestion = conf.baseApiPath + '/api/admin/questionnaire/importQuestion'
    this.saveQuestionnaireRecord = conf.baseApiPath + '/api/admin/questionnaire/saveQuestionnaireRecord'
    this.questionnaireRecordDetail = conf.baseApiPath + '/api/admin/questionnaire/questionnaireRecordDetail'
    this.invalidQuestionnaireRecordDetail = conf.baseApiPath + '/api/admin/questionnaire/invalidQuestionnaireRecordDetail'
    this.exportQuestionnaireRecordDetail = conf.baseApiPath + '/api/admin/questionnaire/exportQuestionnaireRecordDetail'
    this.exportQuestionnaireRecord = conf.baseApiPath + '/api/admin/questionnaire/exportQuestionnaireRecord'
    this.findClassExpandDetailList = conf.baseApiPath + '/api/admin/questionnaire/findClassExpandDetailList'
    this.exportClassExpandDetailList = conf.baseApiPath + '/api/admin/questionnaire/exportClassExpandDetailList'

    this.smallFromCategory = conf.baseApiPath + '/api/admin/crm/smallFromCategory'
    this.bigFromCategory = conf.baseApiPath + '/api/admin/crm/bigFromCategory'
    this.saveOrUpdateBigFromCategory = conf.baseApiPath + '/api/admin/crm/saveOrUpdateBigFromCategory'
    this.saveOrUpdateSmallFromCategory = conf.baseApiPath + '/api/admin/crm/saveOrUpdateSmallFromCategory'
    this.downloadImportTemplate = conf.baseApiPath + '/api/admin/crm/downloadImportTemplate'
    this.importCustomerResource = conf.baseApiPath + '/api/admin/crm/importCustomerResource'
    this.importDetail = conf.baseApiPath + '/api/admin/crm/importDetail'
    this.importRecord = conf.baseApiPath + '/api/admin/crm/importRecord'
    this.saveOrUpdateWorkSetupOfCampus = conf.baseApiPath + '/api/admin/crm/saveOrUpdateWorkSetupOfCampus'
    this.saveOrUpdateWorkSetupTemplate = conf.baseApiPath + '/api/admin/crm/saveOrUpdateWorkSetupTemplate'
    this.workSetupOfCampus = conf.baseApiPath + '/api/admin/crm/workSetupOfCampus'
    this.workSetupTemplate = conf.baseApiPath + '/api/admin/crm/workSetupTemplate'
    this.customerResource = conf.baseApiPath + '/api/admin/crm/customerResource'
    this.customerResourceForDashboard = conf.baseApiPath + '/api/admin/crm/customerResourceForDashboard'
    this.alloCampus = conf.baseApiPath + '/api/admin/crm/alloCampus'
    this.alloFollow = conf.baseApiPath + '/api/admin/crm/alloFollow'
    this.follows = conf.baseApiPath + '/api/admin/crm/follows'
    this.myCustomerResource = conf.baseApiPath + '/api/admin/crm/myCustomerResource'
    this.takeCustomerResource = conf.baseApiPath + '/api/admin/crm/takeCustomerResource'
    this.exportVisitDetail = conf.baseApiPath + '/api/admin/crm/exportVisitDetail'
    this.visitDetail = conf.baseApiPath + '/api/admin/crm/visitDetail'
    this.saveVisitContent = conf.baseApiPath + '/api/admin/crm/saveVisitContent'
    this.delBigFromCategory = conf.baseApiPath + '/api/admin/crm/delBigFromCategory'
    this.exportAnalyzeCustomerResource = conf.baseApiPath + '/api/admin/crm/exportAnalyzeCustomerResource'
    this.analyzeCustomerResource = conf.baseApiPath + '/api/admin/crm/analyzeCustomerResource'
    this.findDepartmentList = conf.baseApiPath + '/api/admin/crm/findDepartmentList'
    this.saveOrUpdateDepartment = conf.baseApiPath + '/api/admin/crm/saveOrUpdateDepartment'
    this.findOneResourceVisitList = conf.baseApiPath + '/api/admin/crm/findOneResourceVisitList'
    this.exportCustomerResource = conf.baseApiPath + '/api/admin/crm/exportCustomerResource'
    this.analyzeStudentOfCustomerResource = conf.baseApiPath + '/api/admin/crm/analyzeStudentOfCustomerResource'
    this.exportAnalyzeStudentOfCustomerResource = conf.baseApiPath + '/api/admin/crm/exportAnalyzeStudentOfCustomerResource'
    this.deleteCustomerResourceByIds = conf.baseApiPath + '/api/admin/crm/deleteCustomerResourceByIds'

    // 薪酬模块
    this.confirmTeacherDollars = conf.baseApiPath + '/api/admin/wage/confirmTeacherDollars'
    this.cancelTeacherDollars = conf.baseApiPath + '/api/admin/wage/cancelTeacherDollars '
    this.exportTeacherCoefficientPerformance = conf.baseApiPath + '/api/admin/wage/exportTeacherCoefficientPerformance'
    this.exportWageTeacherDollars = conf.baseApiPath + '/api/admin/wage/exportWageTeacherDollars'
    this.findHistoryByEmployeeId = conf.baseApiPath + '/api/admin/wage/findHistoryByEmployeeId'
    this.findTeacherCoefficientPerformancePage = conf.baseApiPath + '/api/admin/wage/findTeacherCoefficientPerformancePage'
    this.findTeacherDollarsDetailList = conf.baseApiPath + '/api/admin/wage/findTeacherDollarsDetailList'
    this.updateEmployeeCoefficientPerformance = conf.baseApiPath + '/api/admin/wage/updateEmployeeCoefficientPerformance'
    this.updateTeacherDollars = conf.baseApiPath + '/api/admin/wage/updateTeacherDollars'
    this.findTeacherCommission = conf.baseApiPath + '/api/admin/analyze/findTeacherCommission'
    this.exportTeacherCommission = conf.baseApiPath + '/api/admin/analyze/exportTeacherCommission'
    this.findArrageTeacherHistoryPage = conf.baseApiPath + '/api/admin/arrangement/findArrageTeacherHistoryPage'
    this.exportArrageTeacherHistory = conf.baseApiPath + '/api/admin/arrangement/exportArrageTeacherHistory'
    this.findClassLectureDetailPage = conf.baseApiPath + '/api/admin/arrangement/findClassLectureDetailPage'
    this.batchAdjustLectures = conf.baseApiPath + '/api/admin/arrangement/batchAdjustLectures'
    this.findArrangeLectureHistoryPage = conf.baseApiPath + '/api/admin/arrangement/findArrangeLectureHistoryPage'
    this.exportArrangeLectureHistory = conf.baseApiPath + '/api/admin/arrangement/exportArrangeLectureHistory'

    // 网报管理
    this.externalMeasureScoreList = conf.baseApiPath + '/api/admin/online/externalMeasureScoreList'
    this.exportExternalMeasureScoreList = conf.baseApiPath + '/api/admin/online/exportExternalMeasureScoreList'

    this.adConfigList = conf.baseApiPath + '/api/admin/online/adConfigList'
    this.adConfig = conf.baseApiPath + '/api/admin/online/adConfig'
    this.addAdConfig = conf.baseApiPath + '/api/admin/online/addAdConfig'
    this.updateAdConfig = conf.baseApiPath + '/api/admin/online/updateAdConfig'
    this.delAdConfig = conf.baseApiPath + '/api/admin/online/delAdConfig'
    this.courseDisplayConfigList = conf.baseApiPath + '/api/admin/online/courseDisplayConfigList'
    this.periodCampusGradeForCourseDisplayConfig = conf.baseApiPath + '/api/admin/online/periodCampusGradeForCourseDisplayConfig'
    this.displayConfig = conf.baseApiPath + '/api/admin/online/displayConfig'
    this.saveDisplayConfig = conf.baseApiPath + '/api/admin/online/saveDisplayConfig'
    this.customerBindStudentList = conf.baseApiPath + '/api/admin/online/customerBindStudentList'
    this.customerUserList = conf.baseApiPath + '/api/admin/online/customerUserList'
    this.bindStudent = conf.baseApiPath + '/api/admin/online/bindStudent'
    this.unbindStudent = conf.baseApiPath + '/api/admin/online/unbindStudent'
    this.feedbackList = conf.baseApiPath + '/api/admin/online/feedbackList'
    this.updateFeedbackStatus = conf.baseApiPath + '/api/admin/online/updateFeedbackStatus'
    this.settingChangeClassPage = conf.baseApiPath + '/api/admin/online/settingChangeClassPage'
    this.updateClassChangeState = conf.baseApiPath + '/api/admin/online/updateClassChangeState'
    this.findDegreeSubscribeDetailPage = conf.baseApiPath + '/api/admin/online/findDegreeSubscribeDetailPage'
    this.followDegreeSubscribe = conf.baseApiPath + '/api/admin/online/followDegreeSubscribe'
    this.shoppingCartSituation = conf.baseApiPath + '/api/admin/online/shoppingCartSituation'
    this.exportShoppingCartSituation = conf.baseApiPath + '/api/admin/online/exportShoppingCartSituation'
    // 分段设置
    this.chargeSettingPage = conf.baseApiPath + '/api/admin/online/chargeSettingPage'
    this.addChargeSetting = conf.baseApiPath + '/api/admin/online/addChargeSetting'
    this.chargeSettingDetail = conf.baseApiPath + '/api/admin/online/chargeSettingDetail'



    // 首页
    this.findNeedToDeal = conf.baseApiPath + '/api/admin/analyze/findNeedToDeal'
    this.findCampusSeqStepRate = conf.baseApiPath + '/api/admin/analyze/findCampusSeqStepRate'
    this.findDataCount = conf.baseApiPath + '/api/admin/analyze/findDataCount'

    // 潜客
    this.userDepartmentList = conf.baseApiPath + '/api/admin/crm/userDepartmentList'
    this.saveOrUpdateUserDepartment = conf.baseApiPath + '/api/admin/crm/saveOrUpdateUserDepartment'
    this.userDepartment = conf.baseApiPath + '/api/admin/crm/userDepartment'
    this.firstRegOfCustomerResource = conf.baseApiPath + '/api/admin/crm/firstRegOfCustomerResource'
    this.exportFirstRegOfCustomerResource = conf.baseApiPath + '/api/admin/crm/exportFirstRegOfCustomerResource'
    this.resourceRecycle = conf.baseApiPath + '/api/admin/crm/customerResourceRecycle'
    this.myVisitDetail = conf.baseApiPath + '/api/admin/crm/myVisitDetail'

    // 家校沟通
    this.countCommunicateNum = conf.baseApiPath + '/api/admin/communicate/countCommunicateNum'
    this.studentCommunicatePage = conf.baseApiPath + '/api/admin/communicate/studentCommunicatePage'
    this.exportCommunicateHistory = conf.baseApiPath + '/api/admin/communicate/exportCommunicateHistory'
    this.communicateHistory = conf.baseApiPath + '/api/admin/communicate/communicateHistory'
    this.exportSeniorCommunicate = conf.baseApiPath + '/api/admin/communicate/exportSeniorCommunicate'
    this.communicateSituation = conf.baseApiPath + '/api/admin/communicate/communicateSituation'
    this.exportCommunicateSituation = conf.baseApiPath + '/api/admin/communicate/exportCommunicateSituation'
    this.findStudentRegByCommunicateId = conf.baseApiPath + '/api/admin/communicate/findStudentRegByCommunicateId'
    this.communicationSave = conf.baseApiPath + '/api/admin/communicate/communicationSave'
    this.studentCommunicateHistory = conf.baseApiPath + '/api/admin/communicate/studentCommunicateHistory'
    this.exportStudentCommunicate = conf.baseApiPath + '/api/admin/communicate/exportStudentCommunicate'
    this.importStudentCommunicate = conf.baseApiPath + '/api/admin/communicate/importStudentCommunicate'
    // 我的回访导出
    this.downloadMyVisitDetail = conf.baseApiPath + '/api/admin/crm/exportMyVisitDetail'
    // 资源回收导出
    this.downloadResourceRecycle = conf.baseApiPath + '/api/admin/crm/exportCustomerResourceRecycle'
    // 根据期数日期得出上课时间
    this.searchTimeByDate = conf.baseApiPath + '/api/admin/attendance/classTimeByPeriodDate'

    // 营收预测
    this.countClassPreIncome = conf.baseApiPath + '/api/admin/report/countClassPreIncome'
    this.exportClassPreIncome = conf.baseApiPath + '/api/admin/report/exportcountClassPreIncome'
    // 班级申请列表
    this.findApplyClassDetailPage = conf.baseApiPath + '/api/admin/apply/findApplyClassDetailPage'
    // 导出班级申请列表
    this.exportApplyClassDetailList = conf.baseApiPath + '/api/admin/apply/exportApplyClassDetailList'
    // 保存新增的班级申请
    this.saveApplyClass = conf.baseApiPath + '/api/admin/apply/saveOrUpdateApplyClass'
    // 基础指标
    this.findRegNumClassNum = conf.baseApiPath + '/api/admin/apply/findRegNumClassNum'
    // 审核不通过理由
    this.auditFailureApplyClass = conf.baseApiPath + '/api/admin/apply/auditFailureApplyClass'
    // 审核通过
    this.auditSuccessApplyClass = conf.baseApiPath + '/api/admin/apply/auditSuccessApplyClass'
    // 批量退款申请
    this.saveStudentRefundClassList = conf.baseApiPath + '/api/admin/saveStudentRefundClassList'
    // 审核生成班级
    this.createClassByApply = conf.baseApiPath + '/api/admin/apply/createClassByApply'
    // 批量退款申请详情
    this.studentRefundsWithRegInfoDetails = conf.baseApiPath + '/api/admin/studentRefundsWithRegInfoDetails'
    // 统计列表，根据PeriodIds
    this.findUseCourseListByPeriodIds = conf.baseApiPath + '/api/admin/analyze/findUseCourseListByPeriodIds'
    // 统计设置结果
    this.findClassReportConfigs = conf.baseApiPath + '/api/admin/analyze/findClassReportConfigs'
    // 保存统计设置
    this.saveReportConfigs = conf.baseApiPath + '/api/admin/analyze/saveReportConfigs'
    // 回放记录报读明细
    this.studentReadClassListByPhoneNoOrId = conf.baseApiPath + '/api/admin/studentReadClassListByPhoneNoOrId'
    // 活动列表
    this.findActivityDetailPage = conf.baseApiPath + '/api/admin/activity/findActivityDetailPage'
    // 查看活动数据
    this.findActivityRegSituationPage = conf.baseApiPath + '/api/admin/activity/findActivityRegSituationPage'
    // 导出活动签到数据
    this.exportActivityRegSituation = conf.baseApiPath + '/api/admin/activity/exportActivityRegSituation'
    this.saveOrUpdateActivity = conf.baseApiPath + '/api/admin/activity/saveOrUpdateActivity'
    this.findOneActivityDetail = conf.baseApiPath + '/api/admin/activity/findOneActivityDetail'
    this.findActivityCampusListByActivityId = conf.baseApiPath + '/api/admin/activity/findActivityCampusListByActivityId'
    this.saveActivityCampus = conf.baseApiPath + '/api/admin/activity/saveActivityCampus'
    //  活动目标列表
    this.findActivityTargetPage = conf.baseApiPath + '/api/admin/activity/findActivityTargetPage'
    this.changeActivityTargetById = conf.baseApiPath + '/api/admin/activity/changeActivityTargetById'
    this.exportActivityTarget = conf.baseApiPath + '/api/admin/activity/exportActivityTarget'
    // 库存列表
    this.findActivityInventorySetting = conf.baseApiPath + '/api/admin/activity/findActivityInventorySetting'
    this.activityCampusInventoryDetail = conf.baseApiPath + '/api/admin/activity/activityCampusInventoryDetail'
    this.updateActivityCampusInventory = conf.baseApiPath + '/api/admin/activity/updateActivityCampusInventory'
    this.exportActivityCampusInventory = conf.baseApiPath + '/api/admin/activity/exportActivityCampusInventory'
    // 查询相同名字的学生
    this.findStudentBySameName = conf.baseApiPath + '/api/admin/findStudentBySameName'
    this.saveOrUpdateActivityInventorySetting = conf.baseApiPath + '/api/admin/activity/saveOrUpdateActivityInventorySetting'
    this.mergeStudent = conf.baseApiPath + '/api/admin/mergeStudent'
    this.findFromCategoryList = conf.baseApiPath + '/api/admin/crm/findFromCategoryList'
    // 下载模版
    this.downloadActivityTemplate = conf.baseApiPath + '/api/admin/activity/downloadActivityTemplate'
    // 导入报名数据
    this.importActivityRegSituation = conf.baseApiPath + '/api/admin/activity/importActivityRegSituation'
    this.findStudentRefundBonusPersonPage = conf.baseApiPath + '/api/admin/analyze/findStudentRefundBonusPersonPage'
    this.lockBonusPerson = conf.baseApiPath + '/api/admin/analyze/lockBonusPerson'
    this.unlockBonusPerson = conf.baseApiPath + '/api/admin/analyze/unlockBonusPerson'
    // 导出退费扣除表
    this.exportStudentRefundBonusPerson = conf.baseApiPath + '/api/admin/analyze/exportStudentRefundBonusPerson'
    this.findTeacherTeachDetailPage = conf.baseApiPath + '/api/admin/analyze/findTeacherTeachDetailPage'
    // 教师续读率
    this.exportPeriodSubjectTeacherContinue = conf.baseApiPath + '/api/admin/analyze/exportPeriodSubjectTeacherContinue'
    this.exportTeacherTeachDetailPage = conf.baseApiPath + '/api/admin/analyze/exportTeacherTeachDetailPage'
    this.findPeriodSubjectTeacherContinue = conf.baseApiPath + '/api/admin/analyze/findPeriodSubjectTeacherContinue'
    this.findPeriodSubjectContinue = conf.baseApiPath + '/api/admin/analyze/findPeriodSubjectContinue'
    this.exportPeriodSubjectContinue = conf.baseApiPath + '/api/admin/analyze/exportPeriodSubjectContinue'
    this.saveOrUpdateIntroducers = conf.baseApiPath + '/api/admin/saveOrUpdateIntroducers'
    this.getIntroducersByOrder = conf.baseApiPath + '/api/admin/getIntroducersByOrder'
  },
  getHeaders: function () {
    const accessToken = Storage.getAccessToken() || '';
    return {
      accessToken
    }

  },
  get: function (url, data, success, fail) {
    data.accessToken = this.getHeaders().accessToken
    $.ajax({
      url: url,
      type: 'GET',
      data: data,
      dataType: 'json',
      cache: true,
      timeout: 60000,
      success: function (data) {
        checkResult(data)
        if (success) {
          Storage.setOptingTime(new Date().getTime())
          success(data);
        }
      },
      error: function (xhr, status, error) {
        if (fail) {
          fail(xhr, status, error);
        } else {
          //alert("服务端出错");
        }
      }
    });
  },
  post: function (url, data, success, fail) {
    data.accessToken = this.getHeaders().accessToken
    $.ajax({
      url: url,
      type: 'POST',
      data: data,
      dataType: 'json',
      timeout: 60000,
      success: function (data) {
        checkResult(data)
        if (success) {
          Storage.setOptingTime(new Date().getTime())
          success(data);
        }
      },
      error: function (xhr, status, error) {
        if (fail) {
          fail(xhr, status, error);
        } else {
          //alert("服务端出错");
        }
      }
    });
  },
  syncPost: function (url, data, success, fail) {
    data.accessToken = this.getHeaders().accessToken
    $.ajax({
      url: url,
      type: 'POST',
      data: data,
      dataType: 'json',
      timeout: 60000,
      async: false,
      success: function (data) {
        checkResult(data)
        if (success) {
          Storage.setOptingTime(new Date().getTime())
          success(data);
        }
      },
      error: function (xhr, status, error) {
        if (fail) {
          fail(xhr, status, error);
        } else {
          //alert("服务端出错");
        }
      }
    });
  },
  postPlayload: function (url, data, success, fail) {
    $.ajax({
      url: url,
      type: 'POST',
      contentType: 'application/json; charset=UTF-8',
      data: JSON.stringify(data),
      dataType: 'json',
      processData: false,
      headers: this.getHeaders(),
      timeout: 60000,
      success: function (data) {
        checkResult(data)
        if (success) {
          Storage.setOptingTime(new Date().getTime())
          success(data);
        }
      },
      error: function (xhr, status, error) {
        if (fail) {
          fail(xhr, status, error);
        } else {
          //alert("服务端出错");
        }
      }
    });
  },
  postMitiFile: function (url, data, success) {
    Storage.setOptingTime(new Date().getTime())
    Vue.http.post(url + "?accessToken=" + this.getHeaders().accessToken, data, {
      timeout: 0
    }).then(data => {
      if (success) success(data);
    })
  },
  postFile: function (url, data, success) {
    Storage.setOptingTime(new Date().getTime())
    Vue.http.post(url, data, {
      timeout: 0
    }).then(data => {
      if (success) success(data);
    })
  },
  getScripts: function (urls, done) {
    Storage.setOptingTime(new Date().getTime())
    var $scripts = $.map(urls, function (url) {
      return $.cachedScript(url)
    });
    $scripts.push($.Deferred(function (deferred) {
      $(deferred.resolve);
    }));
    $.when.apply($, $scripts).done(done)
  },
  downloadFile: function (url, data) {
    data.accessToken = this.getHeaders().accessToken
    Storage.setOptingTime(new Date().getTime())
    //data = $.param(data)
    // 把参数组装成 form的  input
    var inputs = []
    for (var k of Object.keys(data)) {
      inputs.push('<input type="hidden" name="' + k + '"/>')
    }

    // request发送请求
    var $form = $('<form target="_blank" action="' + url + '" method="post" style="display: none">' + inputs.join('') + '</form>')
    for (var k of Object.keys(data)) {
      $form.find('input[name=' + k + ']').val(data[k])
    }
    console.log(data)
    $form.appendTo('body').submit().remove()
  }

};

io.configUrls()

export default io;
